package com.punai.externalccb.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.externalccb.domain.EcoBqitemmate;
import com.punai.externalccb.mapper.EcoBqitemmateMapper;
import com.punai.externalccb.service.IEcoBqitemmateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * bqitemmateService业务层处理
 *
 * @author tj
 * @date 2023-04-11
 */
@Service
public class EcoBqitemmateServiceImpl extends ServiceImpl<EcoBqitemmateMapper, EcoBqitemmate> implements IEcoBqitemmateService
{
    @Autowired
    private EcoBqitemmateMapper ecoBqitemmateMapper;

    /**
     * 查询bqitemmate
     *
     * @param id bqitemmate主键
     * @return bqitemmate
     */
    @Override
    public EcoBqitemmate selectEcoBqitemmateById(String id)
    {
        return ecoBqitemmateMapper.selectEcoBqitemmateById(id);
    }

    /**
     * 查询bqitemmate列表
     *
     * @param ecoBqitemmate bqitemmate
     * @return bqitemmate
     */
    @Override
    public List<EcoBqitemmate> selectEcoBqitemmateList(EcoBqitemmate ecoBqitemmate)
    {
        return ecoBqitemmateMapper.selectEcoBqitemmateList(ecoBqitemmate);
    }

    /**
     * 新增bqitemmate
     *
     * @param ecoBqitemmate bqitemmate
     * @return 结果
     */
    @Override
    public int insertEcoBqitemmate(EcoBqitemmate ecoBqitemmate)
    {
            return ecoBqitemmateMapper.insert(ecoBqitemmate);
    }

    /**
     * 修改bqitemmate
     *
     * @param ecoBqitemmate bqitemmate
     * @return 结果
     */
    @Override
    public int updateEcoBqitemmate(EcoBqitemmate ecoBqitemmate)
    {
        return ecoBqitemmateMapper.updateById(ecoBqitemmate);
    }

    /**
     * 批量删除bqitemmate
     *
     * @param ids 需要删除的bqitemmate主键
     * @return 结果
     */
    @Override
    public int deleteEcoBqitemmateByIds(String[] ids)
    {
        return ecoBqitemmateMapper.deleteEcoBqitemmateByIds(ids);
    }

    /**
     * 删除bqitemmate信息
     *
     * @param id bqitemmate主键
     * @return 结果
     */
    @Override
    public int deleteEcoBqitemmateById(String id)
    {
        return ecoBqitemmateMapper.deleteEcoBqitemmateById(id);
    }
}
